<?	session_start(); 
	if(isset($_SESSION['id']) & isset($_SESSION['pass']))
	{
	require("koneksi.php");
	$nrp=$_POST['nrp'];
	$nama=$_POST['nama'];
	$pass=$_POST['pass'];
	$query=mysql_query("insert into biodata values('$nrp','$nama','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');");
	$query2=mysql_query("insert into security values('$nrp','$pass','','')");
	if($query)
	{
		if($query2)
		{
			echo "Data berhasil dimasukkan<br>";
			echo "<a href='menu_mahasiswa.php'>Back To Menu Mahasiswa</a><br>";
			echo "<a href='menu_admin.php'>Back To Menu Admin</a>";
		}
		else
		{
			echo "Data gagal dimasukkan<br>";
			echo "<a href='menu_mahasiswa.php'>Back To Menu Mahasiswa</a><br>";
			echo "<a href='menu_admin.php'>Back To Menu Admin</a>";
		}
	}
	else
	{
		echo "Data gagal dimasukkan<br>";
		echo "<a href='menu_mahasiswa.php'>Back To Menu Mahasiswa</a><br>";
		echo "<a href='menu_admin.php'>Back To Menu Admin</a>";
	}
	}
	else
	header("Location:index.php");
?>	